import request from '@/utils/request'

// 查询违规报告列表
export function listWgbg(query) {
  return request({
    url: '/event/wgbg/list',
    method: 'get',
    params: query
  })
}

export function queryWgbg(query) {
  return request({
    url: '/event/wgbg/query',
    method: 'post',
    data: query
  })
}

// 查询违规报告详细
export function getWgbg(wgbgId) {
  return request({
    url: '/event/wgbg/' + wgbgId,
    method: 'get'
  })
}

// 新增违规报告
export function addWgbg(data) {
  return request({
    url: '/event/wgbg',
    method: 'post',
    data: data
  })
}

// 修改违规报告
export function updateWgbg(data) {
  return request({
    url: '/event/wgbg',
    method: 'put',
    data: data
  })
}

// 删除违规报告
export function delWgbg(wgbgId) {
  return request({
    url: '/event/wgbg/' + wgbgId,
    method: 'delete'
  })
}
